import time

from selenium.webdriver.common.by import By
from src5.Base.Base import Base
class Page(Base):
    shuru_loc = (By.ID,'kw')
    def shuru(self):
        self.send_keys(self.shuru_loc,'我喜欢软件测试')


    click1_loc = (By.ID, 'su')
    def click1(self):
        self.click(self.click1_loc)
    # dy1_loc = (By.XPATH,'//*[@id="s_tab_inner"]/b')
    # def dy1(self):
    #     return self.text(self.dy1_loc)
    # #//*[@id="content_left"]
    # biaoti_loc = (By.XPATH,'//*[@id="content_left"]')
    # def biaoti(self):
    #     return self.text(self.dy1_loc)

    def test_baidu_01(self):
        self.open_url('https://www.baidu.com//')
        time.sleep(2)
        self.shuru()
        time.sleep(5)
        self.click1()
        # time.sleep(5)
        #
        # print(self.biaoti())
        time.sleep(5)
























